PATHMac OS 8 and 9 Developer Documentation > Human Interface Toolbox > Appearance Manager >

Programming With the Appearance Manager


Theme Menu Bar State Constants

You can pass constants of type ThemeMenuBarState in the inState parameter of DrawThemeMenuBarBackground to specify whether theme-compliant menu bars are drawn as normal or selected. The ThemeMenuBarState constants are available with Appearance Manager 1.0.1 and later.

enum{
    kThemeMenuBarNormal         = 0,
    kThemeMenuBarSelected       = 1
};
typedef UInt16 ThemeMenuBarState;

Constant descriptions

kThemeMenuBarNormal
Menu bar is drawn in its normal state.
kThemeMenuBarSelected
Menu bar is drawn in its selected state.

If you wish the menu bar to be drawn with square upper corners (as for a laptop system) instead of rounded ones (as for a desktop system), your application should set the bit for the attribute kThemeMenuSquareMenuBar .

enum {
    kThemeMenuSquareMenuBar= (1 << 0)
};

Constant descriptions

kThemeMenuSquareMenuBar
Menu bar is drawn with square corners.

© 1999 Apple Computer, Inc. – (Last Updated 29 April 99)